Utility.wrapTextComponentsRecursive Method

Recursively split content by characters in split list and wrap each part with a 'span' tag. Used to add support for ellipsis on overflow text.
 

Parameters

content

Type: String
String to split and wrap.
splitList

Type: Array
ElementType: Object

     splitChar   [Type: String] - character to split by.
     splitClass  [Type: String] - class to add to wrapper span.
 
depth

Type: Number
Do not set; for recursive use only.

Return Value


Type: jQuery
jQuery DOM elements wrapping the original content.